Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EdDSA algorithm encoding/decoding usage #993

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

peter279k
Copy link
Contributor

As title, adding the EdDSA algorithm to encode/decode usage.

@peter279k
Copy link
Contributor Author

@jpadilla, if possible, could you review the PR? Thanks :).

Copy link
Owner

@jpadilla jpadilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! mind updating and fixing conflicts?

@jpadilla jpadilla added the hacktoberfest Issues for first-time contributors label Oct 8, 2024
@peter279k
Copy link
Contributor Author

@jpadilla, I've resolved PR conflicts, please review this PR at your available time. Thanks!

docs/usage.rst Outdated
Comment on lines 72 to 73
>>> print(encoded)
eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.yPJ7Ggb6aOZn38vNai8bBN6bgfcrzKXSTsdXeGsZGibnxSZrWDrWeB6p35f9RFkMnYgToe_eh4mgye5V6wj5DQ
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
>>> print(encoded)
eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.yPJ7Ggb6aOZn38vNai8bBN6bgfcrzKXSTsdXeGsZGibnxSZrWDrWeB6p35f9RFkMnYgToe_eh4mgye5V6wj5DQ

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to remove encoded printing?

If we remove encoded printing, I think the encoded variable will be unused.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the exact string representation of the token matters less and can fail dockets.

encoded is used in the decode step below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. The encoded presenting has been removed.

@jpadilla jpadilla merged commit 8910f56 into jpadilla:master Oct 8, 2024
24 of 27 checks passed
@peter279k peter279k deleted the add_eddsa_usage branch October 8, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Issues for first-time contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants